<template>
	<view>
		<map :latitude="description.latitude" :longitude="description.longitude" :markers="markers" />
	</view>
</template>

<script>
	export default {
		data() {
			return {
				description: '',
				markers: []
			}
		},
		onLoad(options) {
			this.description = JSON.parse(options.description)
			this.markers = [{
				latitude: this.description.latitude,
				longitude: this.description.longitude,
				iconPath: '/static/images/myLocation.png', //marker 图标路径
			}]
		},
		methods: {

		}
	}
</script>

<style>
	map {
		height: 100vh;
		width: 100vw;
	}
</style>
